package w;

public class Solution {
    /**
     * @param arr: Any Integer array, and not an empty array
     * @return Unduplicated arrays
     */
    public Integer[] deDuplicate(Integer[] arr) {
        // write your code here
        for(int i=0;i<arr.length;i++){
            if(arr[i]==arr[i+1]){
                arr[i]=arr[i+1];
                arr[i+1]=Integer.parseInt("");
            }
        }
        return arr;
    }
}